package org.example.POJO.online;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    //用户名
    private String username;
    //头像
    private String avatar;
    //服务器地址
    private String server;
    //房间号
    private String roomId = null;

    // 枚举类型定义用户可以占据的位置
    public enum Position {
        LEFT, RIGHT
    }
    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                ", server='" + server + '\'' +
                '}';
    }
}
